package ru.rchervot.sanasar.client.place;

import ru.rchervot.sanasar.client.rpc.RPCServiceAsync;
import ru.rchervot.sanasar.client.view.RootPresenter;

import com.google.gwt.event.shared.HandlerManager;

public class PlaceReports extends AbstractPlace {
	
	protected static String getPlaceModule() {
		return Constants.MODULE_REPORTS;
	}
	
	protected static String getPlaceName() {
		return null;
	}
	
	public static String historyTokenDefault() {
		return getPlaceModule() + 
		(getPlaceName() != null
				? Constants.DELIMITER + getPlaceName()
				: ""
		) + Constants.DELIMITER;
	}
	
	private PlaceReports (HandlerManager eventBus, 
			RPCServiceAsync service, RootPresenter rootPresenter) {
		super(eventBus, service, getPlaceModule(), null,
				rootPresenter);
	}
	
	@Override
	protected String composePlaceParameters() {
		return null;
	}
	
	@Override
	public void parseParameters(String parameters) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void attachPlaceToRoot() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected String historyTokenHead() {
		return historyTokenDefault();
	}
	
}
